$effectiveDate = date('Y-m-d', strtotime("+3 months", strtotime($effectiveDate)));
echo cal_days_in_month(CAL_GREGORIAN, 8, 2009);